package br.com.pd.messaging;

import java.util.ArrayList;
import java.util.List;

import br.com.pd.messaging.bean.Supplier;
import br.com.util.PropertiesLoader;



public class CotationMessage extends AbstractMessage {

	
 	
	/**
	 * 
	 */
	private static final long serialVersionUID = 9156050605465178199L;
	private List<Object> params; 
	private List<Object> response;
	
	
	public CotationMessage(String operation, List<Object> params) {
		super.operation = operation;
		this.response = new ArrayList<Object>();
		this.params = params;
		this.portSender = Integer.parseInt(PropertiesLoader.getInstance().getPropertie(PropertiesLoader.PORT_FACTORY_RECEIVER));
	}
	
	public CotationMessage(){
		
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}

	
	@Override
	public Object getResponse() {
		return this.response;
	}

	@Override
	public void addResponse(Object o) {
		this.response.add((Supplier) o);
	}

	@Override
	public List<Object> getParams() {
		return this.params;
	}

	

}
